package com.mystudy.concurrent.threadLocal;

/**
 * TODO:
 *
 * @author acy
 * @since 2019/05/29 18:30
 */
public class ThreadLocalSimpleTest {
	private static ThreadLocal<String> threadLocal=ThreadLocal.withInitial(() -> "szh");

	public static void main(String[] args) {
		//threadLocal.set("acy");
		try {
			Thread.sleep(1000);
		} catch (InterruptedException e) {
			e.printStackTrace();
		}
		String value = threadLocal.get();
		System.out.println(value);
	}
}
